package com.stars.easyms.redis.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * EasyMs的Redis属性类型
 *
 * @author guoguifang
 * @date 2018-04-23 13:54
 * @since 1.0.0
 */
@Data
@ConfigurationProperties(prefix = "spring.redis")
public class EasyMsRedisProperties {

    /**
     * 是否激活EasyMs的redis模块
     */
    private boolean enabled = true;

    /**
     * redis的key的前缀
     */
    private String prefix;

    /**
     * redis的扫描包
     */
    private List<String> basePackage;

    /**
     * 是否异步加载，默认异步加载
     */
    private boolean asynLoad = true;

}
